text help '"HexenPortal v0.4 by\nLorens Johansson (http://members.xoom.com/snorslex)\nIf you use this program, you are required to\nEmail the author (SnorsleX@SoftHome.net). Otherwise,\nhow is he supposed to know to keep supporting\nHexenPortal ?!?\n\033rLorens Johansson"' label "\033c\033bHexenPortal v0.4\033n\n\033cLorens Johansson\n\033cFreely Distributable Emailware"
group REGISTER ATTRS MUIA_CycleChain 1 LABELS "Hexen (68k),WarpHexen (PPC),VAxen (PPC),Information"
group
group REGISTER ATTRS MUIA_CycleChain 1 LABELS "Main,Settings"
group
label "\033cThis is made for version: \033b0.37"
group frame ATTRS MUIA_Group_Columns 3 label "Parameters"
space HORIZ
group
group ATTRS MUIA_Group_Columns 8
label "-directgfx"
check ID 1_DIR ATTRS MUIA_CycleChain 1 HELP '"Make use of direct accessing the videomem\non a CyberGraphX/Picasso96 screen.\nIf not enabled, WritePixel#?() will be used."'
label "-fpu"
check ID 1_FPU ATTRS MUIA_CycleChain 1 HELP '"Enable FPU routines.\nYou should use that switch on a 68060 with FPU."'
label "-mmu"
check ID 1_MMU ATTRS MUIA_CycleChain 1 HELP '"Enable MMU hack.\nNeeds a 040/060 with working MMU"'
label "-nodoublebuffer"
check ID 1_NDO ATTRS MUIA_CycleChain 1 HELP '"Disables doublebuffering."'
label "-nojoy"
check ID 1_NJO ATTRS MUIA_CycleChain 1 HELP '"Disables joystick."'
label "-nomouse"
check ID 1_NMO ATTRS MUIA_CycleChain 1 HELP '"Disables mouse."'
label "-nomusic"
check ID 1_NMU ATTRS MUIA_CycleChain 1 HELP '"Disables music."'
label "-nosfx"
check ID 1_NSF ATTRS MUIA_CycleChain 1 HELP '"Disables only sound effects."'
label "-nosound"
check ID 1_NSO ATTRS MUIA_CycleChain 1 HELP '"Disables all sound."'
endgroup
group ATTRS MUIA_Group_Columns 6
label "-amfx"
check ID 1_CAM ATTRS MUIA_CycleChain 1 HELP '"AHI audiomode to use for SFX. A requester will pop up,\nif no mode is given. If this option is omitted,\naudio.device will be used.\nSee below how to change the number of soundchannels."' PORT INLINE,
COMMAND """if %s = 0 then do;
address HexenPortal string ID 1_SAM ATTRS '0x80423661' 1;
end;
else do;
address HexenPortal string ID 1_SAM ATTRS '0x80423661' 0;
end"""
string ID 1_SAM ATTRS MUIA_CycleChain 1
label "-file"
check ID 1_CFI ATTRS MUIA_CycleChain 1 HELP '"Additional WAD file(s)."' PORT INLINE,
COMMAND """if %s = 0 then do;
address HexenPortal popasl ID 1_SFI ATTRS '0x80423661' 1;
end;
else do;
address HexenPortal popasl ID 1_SFI ATTRS '0x80423661' 0;
end"""
popasl ID 1_SFI ATTRS MUIA_CycleChain 1
label "-playdemo"
check ID 1_CPL ATTRS MUIA_CycleChain 1 HELP '"Plays the given demo and exits afterwards."' PORT INLINE,
COMMAND """if %s = 0 then do;
address HexenPortal string ID 1_SPL ATTRS '0x80423661' 1;
end;
else do;
address HexenPortal string ID 1_SPL ATTRS '0x80423661' 0;
end"""
string ID 1_SPL ATTRS MUIA_CycleChain 1
label "-skill"
check ID 1_CSK ATTRS MUIA_CycleChain 1 HELP '"Select a skill and skip loading demos."' PORT INLINE,
COMMAND """if %s = 0 then do;
address HexenPortal string ID 1_SSK ATTRS '0x80423661' 1;
end;
else do;
address HexenPortal string ID 1_SSK ATTRS '0x80423661' 0;
end"""
string ID 1_SSK ATTRS MUIA_CycleChain 1
label "-smgame"
check ID 1_CSM ATTRS MUIA_CycleChain 1 HELP '"Screenmode to use for the game."' PORT INLINE,
COMMAND """if %s = 0 then do;
address HexenPortal string ID 1_SSM ATTRS '0x80423661' 1;
end;
else do;
address HexenPortal string ID 1_SSM ATTRS '0x80423661' 0;
end"""
string ID 1_SSM ATTRS MUIA_CycleChain 1
label "-warp"
check ID 1_CWA ATTRS MUIA_CycleChain 1 HELP '"Warp to the specified map without loading demos."' PORT INLINE,
COMMAND """if %s = 0 then do;
address HexenPortal popslider ID 1_SW1 ATTRS '0x80423661' 1;
address HexenPortal popslider ID 1_SW2 ATTRS '0x80423661' 1;
end;
else do;
address HexenPortal popslider ID 1_SW1 ATTRS '0x80423661' 0;
address HexenPortal popslider ID 1_SW2 ATTRS '0x80423661' 0;
end"""
group ATTRS MUIA_Group_Columns 4
label "Episode"
popslider ID 1_SW1 ATTRS MUIA_CycleChain 1 MUIA_Slider_Min 1 MUIA_Slider_Max 3
label "Mission"
popslider ID 1_SW2 ATTRS MUIA_CycleChain 1 MUIA_Slider_Min 1 MUIA_Slider_Max 9
endgroup
endgroup
group ATTRS MUIA_Group_Columns 2
label "Additional:"
string ID 1_ADD
endgroup
endgroup
space HORIZ
endgroup
space
group ATTRS MUIA_Group_Columns 2
label "Hexen Path:"
popasl ID 1_PAT ATTRS MUIA_CycleChain 1 HELP '"Select the Hexen executable!"'
endgroup
endgroup
group
group frame ATTRS MUIA_Group_Columns 2 label "Hexen.cfg"
group REGISTER ATTRS MUIA_CycleChain 1 LABELS "Misc,Keys,ChatMacros"
group scroll ATTRS MUIA_Group_Columns 2
label "Mouse Sensitivity:"
slider ID 2_1 ATTRS MUIA_CycleChain 1 MUIA_Slider_Min 0 MUIA_Slider_Max 9
label "Sfx Volume:"
slider ID 2_2 ATTRS MUIA_CycleChain 1 MUIA_Slider_Min 0 MUIA_Slider_Max 15
label "Music Volume:"
slider ID 2_3 ATTRS MUIA_CycleChain 1 MUIA_Slider_Min 0 MUIA_Slider_Max 15
label "Gamma Correct:"
slider ID 2_4 ATTRS MUIA_CycleChain 1 MUIA_Slider_Min 0 MUIA_Slider_Max 4
label "Sound Channels:"
slider ID 2_5 ATTRS MUIA_CycleChain 1 MUIA_Slider_Min 0 MUIA_Slider_Max 16
label "Screen Blocks:"
slider ID 2_6 ATTRS MUIA_CycleChain 1 MUIA_Slider_Min 3 MUIA_Slider_Max 11
endgroup
group scroll ATTRS MUIA_Group_Columns 2
label "Key Right:"
poplist ID 2_20 ATTRS MUIA_CycleChain 1 labels keys
label "Key Left:"
poplist ID 2_21 ATTRS MUIA_CycleChain 1 labels keys
label "Key Up:"
poplist ID 2_22 ATTRS MUIA_CycleChain 1 labels keys
label "Key Down:"
poplist ID 2_23 ATTRS MUIA_CycleChain 1 labels keys
label "Key Strafe Left:"
poplist ID 2_24 ATTRS MUIA_CycleChain 1 labels keys
label "Key Strafe Right:"
poplist ID 2_25 ATTRS MUIA_CycleChain 1 labels keys
label "Key Jump:"
poplist ID 2_26 ATTRS MUIA_CycleChain 1 labels keys
label "Key Fly Up:"
poplist ID 2_27 ATTRS MUIA_CycleChain 1 labels keys
label "Key Fly Down:"
poplist ID 2_28 ATTRS MUIA_CycleChain 1 labels keys
label "Key Fly Center:"
poplist ID 2_29 ATTRS MUIA_CycleChain 1 labels keys
label "Key Look Up:"
poplist ID 2_30 ATTRS MUIA_CycleChain 1 labels keys
label "Key Look Down:"
poplist ID 2_31 ATTRS MUIA_CycleChain 1 labels keys
label "Key Look Center:"
poplist ID 2_32 ATTRS MUIA_CycleChain 1 labels keys
label "Key Inv Left:"
poplist ID 2_33 ATTRS MUIA_CycleChain 1 labels keys
label "Key Inv Right:"
poplist ID 2_34 ATTRS MUIA_CycleChain 1 labels keys
label "Key Use Artifact:"
poplist ID 2_35 ATTRS MUIA_CycleChain 1 labels keys
label "Key Fire:"
poplist ID 2_36 ATTRS MUIA_CycleChain 1 labels keys
label "Key Use:"
poplist ID 2_37 ATTRS MUIA_CycleChain 1 labels keys
label "Key Strafe:"
poplist ID 2_38 ATTRS MUIA_CycleChain 1 labels keys
label "Key Speed:"
poplist ID 2_39 ATTRS MUIA_CycleChain 1 labels keys
endgroup
group scroll ATTRS MUIA_Group_Columns 2
label "ChatMacro0:"
string ID 2_80 ATTRS MUIA_CycleChain 1
label "ChatMacro1:"
string ID 2_81 ATTRS MUIA_CycleChain 1
label "ChatMacro2:"
string ID 2_82 ATTRS MUIA_CycleChain 1
label "ChatMacro3:"
string ID 2_83 ATTRS MUIA_CycleChain 1
label "ChatMacro4:"
string ID 2_84 ATTRS MUIA_CycleChain 1
label "ChatMacro5:"
string ID 2_85 ATTRS MUIA_CycleChain 1
label "ChatMacro6:"
string ID 2_86 ATTRS MUIA_CycleChain 1
label "ChatMacro7:"
string ID 2_87 ATTRS MUIA_CycleChain 1
label "ChatMacro8:"
string ID 2_88 ATTRS MUIA_CycleChain 1
label "ChatMacro9:"
string ID 2_89 ATTRS MUIA_CycleChain 1
endgroup
endgroup
endgroup
endgroup
endgroup
group
group REGISTER ATTRS MUIA_CycleChain 1 LABELS "Main,Settings"
group
label "\033cThis is made for version: \033b0.6"
group frame ATTRS MUIA_Group_Columns 3 label "Parameters"
space HORIZ
group
group ATTRS MUIA_Group_Columns 8
label "-asl"
check ID 3_ASL ATTRS MUIA_CycleChain 1 HELP '"Use asl requester to select screen mode,\ndefault is PAL|LORES for AGA or 320x200 cgfx mode."'
label "-directcgx"
check ID 3_DIR ATTRS MUIA_CycleChain 1 HELP '"Use fast copy routines instead of writepixel array."'
label "-fps"
check ID 3_FPS ATTRS MUIA_CycleChain 1 HELP '"Shows online fps counter."'
label "-joy"
check ID 3_JOY ATTRS MUIA_CycleChain 1 HELP '"Enables joystick."'
label "-mouse"
check ID 3_MOU ATTRS MUIA_CycleChain 1 HELP '"Turns mouse on."'
label "-music"
check ID 3_MUS ATTRS MUIA_CycleChain 1 HELP '"Enables music."'
label "-nodoublebuffer"
check ID 3_NDO ATTRS MUIA_CycleChain 1 HELP '"Turns off double buffering."'
label "-nosfx"
check ID 3_NSF ATTRS MUIA_CycleChain 1 HELP '"Disables sound fx effects."'
label "-nosound"
check ID 3_NSO ATTRS MUIA_CycleChain 1 HELP '"Disables music and sfx (no sound at all)."'
label "-window"
check ID 3_WIN ATTRS MUIA_CycleChain 1 HELP '"Display results in window on workbench screen.\nWorkbench must have least 15 bit depth.\nDoublebuffering does not work on window.\nWorks also on AGA machines."'
endgroup
group ATTRS MUIA_Group_Columns 6
label "-file"
check ID 3_CFI ATTRS MUIA_CycleChain 1 HELP '"Additional WAD file."' PORT INLINE,
COMMAND """if %s = 0 then do;
address HexenPortal popasl ID 3_SFI ATTRS '0x80423661' 1;
end;
else do;
address HexenPortal popasl ID 3_SFI ATTRS '0x80423661' 0;
end"""
popasl ID 3_SFI ATTRS MUIA_CycleChain 1
label "-lbhack"
check ID 3_CLB ATTRS MUIA_CycleChain 1 HELP '"Should be used like this:\n-lbhack x, where x is number of frames to\nrender in one combination of LockBitMap and UnlockBitMap.\nThis should make the game faster. By default x is 1\n(every frame bitmap is locked and unlocked).\nTry different values here, I bet something like 15 will be best choice.\nThis is a hack (bitmap should not be locked for a long time)\nso use on your own risk. Number of frames to skip should be >= 1."' PORT INLINE,
COMMAND """if %s = 0 then do;
address HexenPortal string ID 3_SLB ATTRS '0x80423661' 1;
end;
else do;
address HexenPortal string ID 3_SLB ATTRS '0x80423661' 0;
end"""
string ID 3_SLB ATTRS MUIA_CycleChain 1
endgroup
group ATTRS MUIA_Group_Columns 2
label "Additional:"
string ID 3_ADD
endgroup
endgroup
space HORIZ
endgroup
space
group ATTRS MUIA_Group_Columns 2
label "VAxen Path:"
popasl ID 3_PAT ATTRS MUIA_CycleChain 1 HELP '"Select the VAxen executable!"'
endgroup
endgroup
group
group frame ATTRS MUIA_Group_Columns 2 label "Hexen.cfg"
list ID CHEAT TITLE """\033bCheat,\033bDescription""" ATTRS MUIA_CycleChain 1 MUIA_List_Format """MIW=15 BAR,"""
endgroup
group
view ATTRS MUIA_CycleChain 1 string "\033c\033bCredits goes to:\n\n\033bRobert Karlsson\033n - Beta Testing and for the name HexenPortal.\n\033bChristian Sauer\033n - For helping me with the keynumbers for Hexen!"
endgroup
endgroup
endgroup
endgroup
group ATTRS MUIA_Group_Columns 2
label "Which Port:"
cycle ID WPORT ATTRS MUIA_CycleChain 1 help '"Select which port to play!"' labels "Hexen,WarpHexen,VAxen"
endgroup
group ATTRS MUIA_Group_Columns 4
label "Buffers:"
string ID BUFFS ATTRS MUIA_CycleChain 1 help '"Select how many buffers you want on the drive."'
label "Stack Size:"
string ID STACK ATTRS MUIA_CycleChain 1 help '"Select how big stack you want to use."'
endgroup
group ATTRS MUIA_Group_Columns 3
button ID START ATTRS MUIA_CycleChain 1 help '"Starts Hexen."' COMMAND """HexenPortal.rexx START""" label "Run Hexen"
space HORIZ
button ID QUIT ATTRS MUIA_CycleChain 1 help '"Quits HexenPortal."' COMMAND '"quit"' PORT HexenPortal label "Quit HexenPortal"
endgroup
endwindow
c.0 = 16
c.1 = "\0333VISIT##,Warp to level ##"
c.2 = "\0333TICKER,Ticker to count your framerate"
c.3 = "\0333SHERLOCK,All puzzle pieces"
c.4 = "\0333SHADOWCASTER#,Change class to the # you enter."
c.5 = "\0333SATAN,God mode"
c.6 = "\0333PUKE##,Runs script (01-99 for the ##)"
c.7 = "\0333NRA,All weapons + full mana + full armor"
c.8 = "\0333NOISE,Shows sound info on your screen"
c.9 = "\0333MAPSCO,Shows you lots of neat places you haven't found yet (only in map mode)"
c.10 = "\0333LOCKSMITH,All keys"
c.11 = "\0333INIT,Restarts the level you are on"
c.12 = "\0333INDIANA,25 of each item"
c.13 = "\0333DELIVERANCE,Pig mode ;-)"
c.14 = "\0333CLUBMED,Full health"
c.15 = "\0333CASPER,No clipping"
c.16 = "\0333BUTCHER,Kill all monsters (it tells you how many lives you just ended)"
i = 0
do c.0
i = i + 1
list ID CHEAT INSERT STRING c.i
end
call LoadSettings
return
Start:
address command "cls"
say "-) Getting info from GUI. (-"
address HexenPortal
cycle ID WPORT
PRT2 = result
if PRT2 = "Hexen" then PRT = "1_"
if PRT2 = "WarpHexen" then PRT = "2_"
if PRT2 = "VAxen" then PRT = "3_"
popasl ID PRT||PAT
FULLPATH = result
plats = pos(':',FULLPATH)
DIR = left(FULLPATH,plats)
FULLPATH = delstr(FULLPATH, 1, plats)
done = 0
do until done = 1
plats = pos('/',FULLPATH)
if plats ~= 0 then do
DIR = DIR||left(FULLPATH,plats)
FULLPATH = delstr(FULLPATH, 1, plats)
end
else do
FILE = delstr(FULLPATH, 1, plats)
done = 1
end
end
if PRT = "1_" then do
check ID 1_DIR
if result = 1 then FILE = FILE||" -directgfx"
check ID 1_FPU
if result = 1 then FILE = FILE||" -fpu"
check ID 1_MMU
if result = 1 then FILE = FILE||" -mmu"
check ID 1_NDO
if result = 1 then FILE = FILE||" -nodoublebuffer"
check ID 1_NJO
if result = 1 then FILE = FILE||" -nojoy"
check ID 1_NMO
if result = 1 then FILE = FILE||" -nomouse"
check ID 1_NMU
if result = 1 then FILE = FILE||" -nomusic"
check ID 1_NSF
if result = 1 then FILE = FILE||" -nosfx"
check ID 1_NSO
if result = 1 then FILE = FILE||" -nosound"
check ID 1_CAM
if result = 1 then do
string ID 1_SAM
FILE = FILE||" -amfx "||result
end
check ID 1_CFI
if result = 1 then do
popasl ID 1_SFI
FILE = FILE||" -file "||result
end
check ID 1_CPL
if result = 1 then do
string ID 1_SPL
FILE = FILE||" -playdemo "||result
end
check ID 1_CSK
if result = 1 then do
string ID 1_SSK
FILE = FILE||" -skill "||result
end
check ID 1_CSM
if result = 1 then do
string ID 1_SSM
FILE = FILE||" -smgame "||result
end
check ID 1_CWA
if result = 1 then do
popslider ID 1_SW1
FILE = FILE||" -warp "||result
popslider ID 1_SW2
FILE = FILE||result
end
string ID 1_ADD
FILE = FILE||" "||result
end
if PRT = "2_" then do
check ID 2_CFI
if result = 1 then do
popasl ID 2_SFI
FILE = FILE||" -file "||result
end
string ID 2_ADD
FILE = FILE||" "||result
end
if PRT = "3_" then do
check ID 3_ASL
if result = 1 then FILE = FILE||" -asl"
check ID 3_DIR
if result = 1 then FILE = FILE||" -directcgx"
check ID 3_FPS
if result = 1 then FILE = FILE||" -fps"
check ID 3_JOY
if result = 1 then FILE = FILE||" -joy"
check ID 3_MOU
if result = 1 then FILE = FILE||" -mouse"
check ID 3_MUS
if result = 1 then FILE = FILE||" -music"
check ID 3_NDO
if result = 1 then FILE = FILE||" -nodoublebuffer"